/* ===== Fonts (self-hosted woff2, no runtime CDN) ===== */
@font-face {
  font-family: 'Gowun Dodum';
  src: url('../fonts/gowun-dodum-korean-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; }

/* ===== Design Tokens ===== */
:root {
  --teal: #3f8f8a;
  --teal-dark: #2f6b67;
  --coral: #ee7a5b;
  --coral-dark: #d85f40;
  --cream: #fbf6ee;
  --card: #fffdf9;
  --text: #3a322b;
  --text-soft: #5c5147;
  --line: #e7ddcd;
  --font-heading: 'Gowun Dodum', 'Pretendard', sans-serif;
  --font-body: 'Pretendard', system-ui, sans-serif;
  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(58, 50, 43, 0.10);
}

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 19px;
  font-weight: 400;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
p { color: var(--text-soft); }
a { color: var(--teal-dark); }

:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--card); }
.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 2000;
  background: var(--teal); color: #fff; padding: .9rem 1.4rem;
  border-radius: 10px; font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 1rem; }
.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;
}
.eyebrow {
  display: inline-block; font-weight: 700; color: var(--teal-dark);
  background: rgba(63,143,138,.12); padding: .4rem 1rem; border-radius: 999px;
  font-size: 1rem; margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; max-width: 56ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1.15rem; text-decoration: none; cursor: pointer;
  padding: 1rem 1.9rem; border-radius: 14px; border: 3px solid transparent;
  min-height: 60px; transition: background-color .18s, transform .18s, border-color .18s;
}
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-dark); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); }
.btn--ghost { background: var(--card); color: var(--teal-dark); border-color: var(--teal); }
.btn--ghost:hover { background: rgba(63,143,138,.10); }
.btn--lg { font-size: 1.3rem; padding: 1.15rem 2.3rem; min-height: 68px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.center .btn-row { justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251,246,238,.94); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 156px; height: auto; }
.nav-toggle {
  display: none; background: var(--card); border: 3px solid var(--teal);
  color: var(--teal-dark); border-radius: 12px; padding: .6rem .8rem;
  cursor: pointer; align-items: center; gap: .5rem; font-weight: 700; min-height: 52px;
}
.nav-toggle .bars { display: inline-block; width: 26px; height: 3px; background: var(--teal-dark); position: relative; border-radius: 3px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 26px; height: 3px; background: var(--teal-dark); border-radius: 3px; }
.nav-toggle .bars::before { top: -8px; } .nav-toggle .bars::after { top: 8px; }
.nav-menu { display: flex; align-items: center; gap: .3rem; }
.nav-menu a {
  text-decoration: none; color: var(--text); font-weight: 500;
  padding: .7rem 1rem; border-radius: 10px; font-size: 1.08rem;
}
.nav-menu a:hover { background: rgba(63,143,138,.12); color: var(--teal-dark); }
.nav-menu a[aria-current="page"] { color: var(--teal-dark); font-weight: 700; background: rgba(63,143,138,.14); }
.nav-menu .btn { margin-left: .5rem; padding: .7rem 1.3rem; min-height: 52px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero p.lead { margin-bottom: 2rem; }
.hero__img { border-radius: 26px; box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 5/4; }
.hero__note { margin-top: 1.5rem; font-size: 1.05rem; color: var(--text-soft); display: flex; align-items: center; gap: .5rem; }

/* ===== Cards ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .7rem; }
.card p { font-size: 1.05rem; }
.card__icon {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: 1.2rem; background: rgba(63,143,138,.12);
}
.card__icon svg { width: 42px; height: 42px; }
.card--coral .card__icon { background: rgba(238,122,91,.15); }

/* ===== Section heads ===== */
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .8rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; text-align: center; box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
}
.step h3 { margin-bottom: .6rem; }
.step p { font-size: 1.05rem; }

/* ===== Testimonials ===== */
.quote {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
}
.quote p { font-size: 1.15rem; color: var(--text); }
.quote footer { margin-top: 1.2rem; font-weight: 700; color: var(--teal-dark); font-style: normal; }

/* ===== CTA band ===== */
.cta-band { background: var(--teal); color: #fff; border-radius: 26px; padding: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .95; font-size: 1.15rem; margin: 1rem auto 2rem; max-width: 50ch; }
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--teal-dark); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.85); }

/* ===== Feature split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; font-size: 1.1rem; }
.check-list li::before {
  content: "✓"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-size: 1rem; font-weight: 700; margin-top: .2rem;
}

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--card); border-bottom: 2px solid var(--line); padding: clamp(2.5rem,6vw,4rem) 0; text-align: center; }
.page-hero p.lead { margin: 1rem auto 0; }

/* ===== FAQ accordion ===== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { background: var(--card); border: 2px solid var(--line); border-radius: 14px; margin-bottom: 1rem; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.4rem 1.6rem; font-size: 1.2rem; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px;
}
.faq__q .icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(63,143,138,.14); color: var(--teal-dark); display: grid; place-items: center; font-size: 1.5rem; transition: transform .2s; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq__a { padding: 0 1.6rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__a p { font-size: 1.08rem; padding-bottom: 1.4rem; }
.faq__item.is-open .faq__a { max-height: 600px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3rem); align-items: start; }
.phone-card { background: var(--coral); color: #fff; border-radius: 22px; padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow); }
.phone-card h2, .phone-card p { color: #fff; }
.phone-card .phone-num { display: inline-block; font-family: var(--font-heading); font-size: clamp(2.2rem,6vw,3rem); font-weight: 700; color: #fff; text-decoration: none; margin: 1rem 0 .5rem; letter-spacing: 1px; }
.info-list { margin-top: 1.5rem; }
.info-list li { display: flex; gap: .8rem; padding: .9rem 0; border-top: 2px solid var(--line); font-size: 1.08rem; align-items: baseline; }
.info-list li:first-child { border-top: 0; }
.info-list .label { flex: 0 0 110px; font-weight: 700; color: var(--text); }

/* ===== Form ===== */
.form { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: .55rem; }
.field .req { color: var(--coral-dark); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--text);
  background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .9rem 1rem;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 4px solid var(--coral); outline-offset: 2px; }
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; }
.form__hint { font-size: 1rem; color: var(--text-soft); margin-top: 1rem; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--text); color: #f1e9dd; padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer a { color: #f1e9dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand img { width: 150px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1rem; }
.footer-brand p { color: #d8cdbd; font-size: 1.02rem; }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .7rem; }
.footer-col a { text-decoration: none; font-size: 1.05rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom p { color: #c9bdac; font-size: .98rem; }
.legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.legal-open { background: none; border: 0; padding: 0; cursor: pointer; color: #f1e9dd; font: inherit; font-size: 1.02rem; text-decoration: underline; }
.legal-open:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(58,50,43,.62); }
.modal__panel {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--card); color: var(--text); padding: 2.5rem; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal__panel h2 { margin-bottom: .5rem; }
.modal__panel h3 { margin: 1.6rem 0 .6rem; font-size: 1.25rem; color: var(--teal-dark); }
.modal__panel p, .modal__panel li { font-size: 1.05rem; color: var(--text-soft); }
.modal__panel ul.bullets { list-style: disc; padding-left: 1.4rem; margin: .5rem 0; }
.modal__panel ul.bullets li { margin-bottom: .4rem; }
.modal__updated { font-size: .98rem; color: var(--text-soft); margin-bottom: 1rem; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; background: var(--cream); border: 2px solid var(--line);
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text);
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
}
.modal__close:hover { background: var(--line); }
.legal-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1rem; font-size: 1rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; color: var(--text-soft); }
.legal-table th { background: rgba(63,143,138,.10); color: var(--text); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__img, .split__media img { aspect-ratio: 16/10; }
  .split--rev .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; background: var(--cream); border-bottom: 2px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; gap: .5rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 1rem; font-size: 1.2rem; border: 2px solid var(--line); }
  .nav-menu .btn { margin-left: 0; min-height: 60px; font-size: 1.15rem; }
  .modal__panel { padding: 1.6rem 1.2rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
