/* Homepage: soft rounded panels for the three business areas and direct contact. */
:root {
  --ink: #18203A;
  --muted: #4F5670;
  --page: #F6F6F3;
  --white: #FFFFFF;
  --lav: #ECEAFB;
  --lav-2: #DCD7FA;
  --peach: #FDEBDF;
  --peach-2: #FAD9C4;
  --mint: #E2F4EA;
  --mint-2: #C9EBD7;
  --accent: #F7A072;
  --live: #2FB36B;
  --r-panel: 48px;
  --r-card: 28px;
  --r-frame: 26px;
  --r-img: 18px;
  --r-phone: 30px;
  --shadow-soft: 0 10px 30px rgba(24, 32, 58, .07);
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  --font-head: "Gowun Dodum", var(--font-body);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #6B5BE2; outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 50;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ── Header ───────────────────────────────────────── */
.top { padding: 20px var(--gutter) 0; }
.top-bar {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 20px;
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 999px; }
.top-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }

.contact-menu { position: relative; }
.contact-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 18px 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.contact-menu > summary::-webkit-details-marker { display: none; }
.contact-menu .chevron { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s ease; }
.contact-menu[open] .chevron { transform: rotate(180deg); }
.contact-pop {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 20;
  width: min(320px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  background: var(--white); border-radius: var(--r-card);
  box-shadow: 0 24px 60px rgba(24, 32, 58, .18);
}
.contact-pop-title { padding: 8px 12px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.contact-pop a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 12px; border-radius: 20px; }
.contact-pop a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-pop strong { font-size: 17px; letter-spacing: -.01em; }
.contact-pop small { font-size: 13px; color: var(--muted); }

.contact-icon {
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-icon-mail { background: var(--lav); }

/* ── Shared ───────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-line { box-shadow: inset 0 0 0 1.5px rgba(24, 32, 58, .12); }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--live); }
h1, h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px;
  border-radius: 999px; background: var(--white); box-shadow: 0 6px 18px rgba(24, 32, 58, .06);
  font-size: 14px; font-weight: 500;
}
.hero-chip span { width: 22px; height: 22px; border-radius: 999px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.22; letter-spacing: -.025em; text-wrap: initial; }
.hero-lead { max-width: 30em; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero .btn { min-height: 54px; padding: 0 26px; font-size: 16px; }
.live-line { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
.live-line .live-dot { margin-top: .6em; }

.hero-cards {
  flex: 1.1 1 480px; min-width: 0;
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  aspect-ratio: 1.45;
}
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-panel); }
.hero-card-map { grid-row: span 2; display: flex; align-items: flex-end; justify-content: center; padding-top: 64px; background: var(--lav); }
.hero-card-map img {
  width: 60%; margin-bottom: -18%;
  border: 6px solid var(--ink); border-radius: var(--r-phone);
  box-shadow: 0 18px 40px rgba(24, 32, 58, .18);
}
.hero-card-space { background: var(--peach); }
.hero-card-space img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-market { display: flex; align-items: center; justify-content: center; background: var(--mint); }
.hero-card-market img { width: 34%; margin-bottom: 28px; border-radius: 28%; box-shadow: 0 14px 30px rgba(24, 32, 58, .12); }
.tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px);
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.hero-card-map .tag { top: 16px; bottom: auto; }
.tag b, .num {
  flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); font-variant-numeric: tabular-nums;
}
.tag b { width: 28px; height: 28px; font-size: 12px; }

/* ── Service panels ───────────────────────────────── */
.svc { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); scroll-margin-top: 8px; }
.svc-panel { display: flex; flex-direction: column; gap: 36px; padding: clamp(20px, 4vw, 56px); border-radius: var(--r-panel); }
.svc-lav { background: var(--lav); --chip: var(--lav-2); --glow: rgba(60, 46, 140, .12); }
.svc-peach { background: var(--peach); --chip: var(--peach-2); --glow: rgba(150, 80, 40, .12); }
.svc-mint { background: var(--mint); --chip: var(--mint-2); --glow: rgba(30, 110, 70, .12); }
.svc-main { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.svc-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.svc-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.num { width: 36px; height: 36px; font-size: 13px; }
.svc h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.28; }
.svc-lead { font-size: 17px; line-height: 1.7; color: var(--muted); }

.window {
  position: relative; padding: 10px;
  background: var(--white); border-radius: var(--r-frame);
  box-shadow: 0 18px 44px var(--glow);
}
.svc-main > .window, .window-group { flex: 1.45 1 480px; min-width: 0; }
.window-dots { display: flex; gap: 6px; padding: 4px 8px 10px; }
.window-dots span { width: 10px; height: 10px; border-radius: 999px; background: #F4B9A4; }
.window-dots span:nth-child(2) { background: #F6D98E; }
.window-dots span:nth-child(3) { background: #A9DDB9; }
.window > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-img); }
.live-chip {
  position: absolute; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 44px);
  padding: 8px 14px; border-radius: 999px; background: var(--white);
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(24, 32, 58, .12);
}
.window-with-card { margin-bottom: 22px; }
.float-card {
  position: absolute; right: 22px; bottom: -22px; width: 38%;
  padding: 6px; background: var(--white); border-radius: var(--r-card);
  box-shadow: 0 14px 34px rgba(24, 32, 58, .16);
}
.float-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-img); }
.float-card p { padding: 8px 6px 4px; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.window-group { position: relative; margin-bottom: 24px; padding-right: 15%; }
.window-group .window > img { aspect-ratio: 16 / 9; object-position: top; }
.phone {
  position: absolute; right: 0; bottom: -24px; width: 27%;
  border: 6px solid var(--ink); border-radius: var(--r-phone);
  box-shadow: 0 18px 40px rgba(24, 32, 58, .2);
}

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.detail { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--white); border-radius: var(--r-card); }
.detail-icon { width: 44px; height: 44px; border-radius: 999px; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.detail-icon svg { width: 22px; height: 22px; }
.detail h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.detail p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.detail-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #F1EFFB; font-size: 12px; color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.store-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; }

/* ── Contact ──────────────────────────────────────── */
#contact { padding-bottom: 40px; }
.contact-panel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; padding: clamp(28px, 5vw, 64px); background: var(--ink); color: var(--white); }
.contact-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.contact-kicker span { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.contact-copy h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.28; }
.contact-copy > p:last-child { font-size: 17px; line-height: 1.7; color: #C9CEDD; }
.contact-cards { flex: 1.2 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 20px 22px;
  border-radius: var(--r-card); background: rgba(255, 255, 255, .08);
  transition: background .15s ease;
}
.contact-card-wide { grid-column: 1 / -1; }
.contact-card .contact-icon { width: 52px; height: 52px; }
.contact-card .contact-icon svg { width: 24px; height: 24px; }
.contact-card > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card strong { font-size: 21px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-card small { font-size: 14px; color: #C9CEDD; }

/* ── Footer ───────────────────────────────────────── */
.foot {
  max-width: 1200px; margin: 0 auto; padding: 24px 24px 56px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
  font-size: 13px; line-height: 1.8; color: var(--muted);
}
.foot-brand { margin-bottom: 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); }

@media (hover: hover) {
  .top-nav a:hover, .contact-pop a:hover { background: #F1EFF8; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(24, 32, 58, .12); }
  .hero-card:hover .tag { box-shadow: 0 8px 20px rgba(24, 32, 58, .14); }
  .contact-card:hover { background: rgba(255, 255, 255, .14); }
  .foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 760px) {
  :root { --r-panel: 34px; --r-card: 24px; }
  .top-bar { flex-wrap: wrap; border-radius: 28px; padding: 10px 10px 6px 16px; row-gap: 4px; }
  .brand { flex: 1; }
  .top-nav {
    order: 3; width: 100%; margin: 0 -10px 0 -16px; padding: 4px 8px 0; width: calc(100% + 26px);
    overflow-x: auto; scrollbar-width: none; border-top: 1px solid #EEEDF3;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { padding: 0 12px; }
  .hero { padding: 36px 20px 28px; gap: 32px; }
  .hero-lead { font-size: 17px; }
  .window-group { padding-right: 18%; }
  .phone { width: 30%; border-width: 4px; border-radius: 20px; }
  .hero-card-map img { border-width: 4px; border-radius: 22px; }
  .tag { left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 12px; padding: 4px 10px 4px 4px; gap: 6px; }
  .hero-card-map .tag { top: 10px; }
  .tag b { width: 24px; height: 24px; font-size: 11px; }
  .live-chip { left: 16px; bottom: 16px; max-width: calc(100% - 32px); font-size: 12px; }
  .float-card { right: 14px; width: 46%; }
  .foot { padding: 20px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .contact-menu .chevron, .contact-card { transition: none; }
  .btn:hover { transform: none; }
}
