:root {
  --color-primary: #0F766E;
  --color-secondary: #14B8A6;
  --color-accent: #0369A1;
  --color-neutral-dark: #134E4A;
  --color-neutral-light: #F0FDFA;
  --color-text: #0f2a29;
  --color-muted: #4b6b68;
  --color-border: rgba(19, 78, 74, 0.14);
  --font-heading: 'Gowun Batang', serif;
  --font-body: 'Pretendard', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
  --radius: 20px;
  --shadow: 0 30px 60px -30px rgba(15, 42, 41, 0.28);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #FAFDFC;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--color-neutral-dark); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 720px; }
.section { padding-block: 4rem; }
.section.alt { background: var(--color-neutral-light); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.lede { color: var(--color-muted); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-primary); font-weight: 600; margin: 0 0 1rem; }

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

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; position: static; padding: 0; background: transparent; border: 0; }
}

/* === Hero (card archetype) === */
.hero { padding-block: 3rem 4rem; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #FAFDFC 100%); }
.hero-card__inner {
  max-width: 880px; margin-inline: auto;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  text-align: center;
}
.hero-card__figure { margin: 2rem 0 0; border-radius: 14px; overflow: hidden; }
.hero-card__figure img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hero-cta { margin-top: 1.75rem; }
.hero .lede { max-width: 52ch; margin-inline: auto; }

@media (min-width: 768px) {
  .hero { padding-block: 5rem 6rem; }
  .hero-card__inner { padding: 4rem 3.5rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(15, 118, 110, 0.35); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: #0b5f58; color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #025c86; color: #fff; }

/* === Grid + cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px -22px rgba(15, 42, 41, 0.25);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-text); margin-bottom: 0; }
.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 20px 40px -22px rgba(15, 42, 41, 0.35); }
.card-link h3 { color: var(--color-primary); }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial-head { text-align: center; }
.testimonial {
  margin: 0; text-align: center;
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
}
.testimonial p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.6; margin-bottom: 1.25rem; }
.testimonial cite { display: block; font-style: normal; font-family: var(--font-body); color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; }

/* === Contact band === */
.contact-band { background: var(--color-neutral-light); }
.contact-block { font-style: normal; line-height: 1.9; margin-bottom: 1.5rem; }
.contact-block a { color: var(--color-primary); }

/* === Form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: 16px; border: 1px solid var(--color-border); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--color-muted); }
.form-consent input { margin-top: 0.25rem; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--color-neutral-dark); font-family: var(--font-heading); font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--color-primary); }
.faq details p { margin: 0.75rem 0 0; color: var(--color-text); }

/* === Article detail === */
.article { max-width: 65ch; margin-inline: auto; padding: 3rem 1rem 4rem; }
.article-head .eyebrow { color: var(--color-accent); }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-sub { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.article-hero { margin: 2rem 0; border-radius: 12px; overflow: hidden; }
.article-hero img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article p { font-size: 1.125rem; line-height: 1.8; margin-block: 1.25rem; }
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { font-weight: 600; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(240, 253, 250, 0.85); padding-top: 3.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(240, 253, 250, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(240, 253, 250, 0.7); margin-top: 0.5rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.logo--footer img { height: 64px; }
.copyright { padding: 1.25rem 1.25rem 2rem; font-size: 0.85rem; color: rgba(240, 253, 250, 0.6); border-top: 1px solid rgba(255,255,255,0.08); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
}

/* === 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);
  border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; line-height: 1.6; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: transparent; color: var(--color-neutral-light); border-color: rgba(240, 253, 250, 0.4); }
.cookie-banner [data-cookie-settings] { background: transparent; color: var(--color-neutral-light); border-color: rgba(240, 253, 250, 0.4); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240, 253, 250, 0.2); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner [data-cookie-save] { background: var(--color-secondary); color: var(--color-neutral-dark); align-self: flex-start; margin-top: 0.5rem; }
