/* === Tokens === */
:root {
  --color-primary: #0891B2;
  --color-secondary: #22D3EE;
  --color-accent: #059669;
  --color-neutral-dark: #164E63;
  --color-neutral-light: #ECFEFF;
  --color-text: #0f2b33;
  --color-muted: #4b6b73;
  --color-line: rgba(22, 78, 99, 0.14);
  --font-heading: 'Gowun Batang', 'Noto Serif KR', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 20px 50px -30px rgba(22, 78, 99, 0.35);
  --measure: 65ch;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; }
.primary-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  font-size: 0.98rem;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-neutral-dark);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 1.25rem 1.5rem;
  gap: 1rem;
  align-items: flex-start;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); text-decoration: none; }
.btn-light { background: #fff; color: var(--color-neutral-dark); }
.btn-light:hover { background: var(--color-neutral-light); text-decoration: none; }

/* === Hero fullscreen === */
.hero-fullscreen {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-fullscreen.hero-short { min-height: 60vh; }
.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(rgba(22, 78, 99, 0.55), rgba(8, 145, 178, 0.55));
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding-block: 3rem;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 4rem);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-head p { color: var(--color-muted); }
.section-intro { text-align: center; padding-block: 4.5rem; }
.section-intro h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-intro p { color: var(--color-muted); font-size: 1.05rem; max-width: 60ch; margin-inline: auto; }
.section-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* === Grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: 0.98rem; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
a.card-link { color: inherit; text-decoration: none; display: block; }
a.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.read-more { display: inline-block; margin-top: 1rem; color: var(--color-primary); font-weight: 600; font-size: 0.95rem; }

/* === Quote === */
.section-quote { padding-block: 4rem; background: #fff; }
.section-quote blockquote {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  color: var(--color-neutral-dark);
  padding: 0 1rem;
}
.section-quote blockquote p { margin-bottom: 1rem; }
.section-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding-block: 3.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.contact-inline { font-size: 0.95rem; }
.contact-inline a { color: #fff; text-decoration: underline; }

/* === Split === */
.section-split { padding-block: 4.5rem; }
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.split-figure img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.split-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.split-text p { color: var(--color-muted); }

/* === Article detail === */
.article-detail {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 3rem 1.25rem 4rem;
}
.article-detail .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 1rem; }
.article-sub { color: var(--color-muted); font-size: 1.15rem; margin-bottom: 1.5rem; }
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-block: 2rem; }
.article-detail p { font-size: 1.075rem; line-height: 1.8; margin-block: 1.25rem; color: var(--color-text); }
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-line); }
.back-link { font-weight: 600; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--color-neutral-dark); }
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; }

/* === Thank you === */
.thank-you { padding-block: 5rem; text-align: center; }
.thank-you h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.thank-you .lede { font-size: 1.15rem; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(236, 254, 255, 0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(236, 254, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { height: 60px; filter: brightness(0) invert(1); }
.footer-tag { font-size: 0.95rem; margin-top: 0.75rem; color: rgba(236, 254, 255, 0.7); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid address { font-style: normal; font-size: 0.95rem; line-height: 1.7; }
.legal-links { margin-top: 1rem !important; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(236, 254, 255, 0.7);
}

/* === 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.1rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
  max-width: 560px;
  margin-inline: auto;
  font-size: 0.95rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font: inherit;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 254, 255, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
}
.cookie-banner__actions button:hover { background: rgba(236, 254, 255, 0.1); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #047857; }
.cookie-banner__prefs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(236, 254, 255, 0.2);
  padding-top: 0.9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: none;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

/* === Responsive === */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; }
}
@media (min-width: 768px) {
  body { font-size: 17px; }
  .logo img { height: 96px; }
  .site-footer .logo img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .section { padding-block: 5.5rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
