:root {
  --color-primary: #4F46E5;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Gowun Batang', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 30px -18px rgba(49,46,129,0.35);
}

/* === 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-neutral-dark); background: #fff; line-height: 1.65; font-size: 16px; }
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.2; margin: 0 0 .75rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 1.25rem; }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(49,46,129,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; background: transparent; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid rgba(49,46,129,0.08); padding: 1rem 1.25rem; }
.primary-nav ul { display: flex; flex-direction: column; gap: .75rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .35rem 0; display: block; }
.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: block; position: static; padding: 0; background: transparent; border: 0; }
  .primary-nav ul { flex-direction: row; gap: 1.75rem; }
}

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-family: var(--font-body); letter-spacing: .01em; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #1ea94c; }

/* === Hero === */
.hero-stacked { padding-block: 3rem 2.5rem; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%); }
.hero-inner { max-width: 780px; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--color-secondary); font-weight: 600; margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 22ch; margin-bottom: 1.5rem; }
.hero-figure { margin: 2rem 0; }
.hero-figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); width: 100%; }
.hero-sub { font-size: 1.125rem; color: var(--color-neutral-dark); opacity: .85; max-width: 55ch; }
.hero-cta { margin-top: 1.75rem; }

@media (min-width: 768px) {
  .hero-stacked { padding-block: 5rem 4rem; }
  .hero-figure { margin-block: 3rem; }
}

/* === Section base === */
.section { padding-block: 3rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 2rem; text-align: center; }

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

/* === Intro === */
.intro-inner { display: grid; gap: 2.5rem; align-items: center; }
.intro-text h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.intro-figure img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-soft); }
.intro.alt { background: var(--color-neutral-light); }
.intro-single { max-width: 720px; margin-inline: auto; }

@media (min-width: 820px) {
  .intro-inner { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .intro-single { grid-template-columns: 1fr; }
}

/* === Cards / Highlights === */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card { background: #fff; border: 1px solid rgba(49,46,129,0.10); border-radius: var(--radius); padding: 1.75rem; transition: transform .18s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card .icon { color: var(--color-primary); margin-bottom: .75rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .97rem; }

@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial { max-width: 720px; margin-inline: auto; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--color-neutral-dark); }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-secondary); font-size: .95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3rem; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-inner { max-width: 640px; margin-inline: auto; }

/* === Contact === */
.contact-band { background: var(--color-neutral-light); }
.contact-grid { display: grid; gap: 2rem; }
.contact-facts { display: flex; flex-direction: column; gap: .7rem; }
.contact-facts li { padding-left: 0; }
.contact-facts strong { display: inline-block; min-width: 4.5rem; color: var(--color-secondary); font-weight: 600; }
.hours-table { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; border: 1px solid rgba(49,46,129,0.08); }
.hours { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.5rem; margin: 0; }
.hours dt { color: var(--color-neutral-dark); font-weight: 500; }
.hours dd { margin: 0; color: var(--color-secondary); font-variant-numeric: tabular-nums; }

@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

/* === Form === */
.form-wrap { max-width: 640px; margin-inline: auto; }
.form-wrap h2 { text-align: center; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid rgba(49,46,129,0.20); border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff; color: var(--color-neutral-dark); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--color-secondary); margin: 1rem 0 1.5rem; line-height: 1.5; flex-wrap: wrap; }
.form-consent input { margin-top: .2rem; }
.form-success { background: var(--color-neutral-light); border-left: 3px solid var(--color-accent); padding: 1rem 1.25rem; border-radius: 6px; margin-top: 1.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: .75rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.tagline { color: rgba(238,242,255,0.75); margin-top: .5rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col address { font-style: normal; color: rgba(238,242,255,0.85); line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .88rem; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(238,242,255,0.15); font-size: .85rem; color: rgba(238,242,255,0.65); }

@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }

/* === 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 1.4rem; border-radius: var(--radius); box-shadow: 0 20px 50px -15px rgba(0,0,0,0.4); max-width: 560px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { font-family: inherit; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(238,242,255,0.25); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-size: .88rem; }
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 600; }
.cookie-banner button:hover { background: rgba(255,255,255,0.10); }
.cookie-banner button[data-cookie-accept]:hover { background: #1ea94c; }
.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 { margin-top: .5rem; align-self: flex-start; }
