/* ─── 간다GO · 컴포넌트 오버레이 & 레이아웃 ─── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 82% -12%, rgba(255, 122, 24, 0.13), transparent 60%),
    radial-gradient(900px 520px at -5% 4%, rgba(255, 122, 24, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: var(--lh);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; color: var(--text-2); }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.eyebrow { color: var(--brand-soft); font-weight: 700; letter-spacing: 0.02em; font-size: 0.9rem; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--text-2); max-width: 60ch; }

/* skip link (접근성) */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 200; }
.skip:focus { left: 0; }

/* ── 헤더 / 내비 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-grad); box-shadow: var(--brand-glow); display: grid; place-items: center; color: #fff; font-size: 0.8rem; flex: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 10px; border-radius: var(--r-sm); font-size: 0.9rem; color: var(--text-2); font-weight: 600; white-space: nowrap; transition: 0.18s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 4px; white-space: nowrap; font-size: 0.86rem; padding: 10px 14px; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: var(--r-sm); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 1040px) {
  .nav-links { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 2px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; margin: 0; transform: translateY(-120%); transition: 0.28s; box-shadow: var(--shadow-2); }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav .nav-cta { display: none; }
}

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.96rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--brand-glow); }
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(255, 122, 24, 0.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ── Hero ── */
.hero { position: relative; padding: clamp(54px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; max-width: 20ch; }
.hero .lead { margin-top: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
/* 히어로 2단: 좌 카피 · 우 이미지 */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero-media { margin: 0; position: relative; }
.hero-media::before { content: ''; position: absolute; inset: -12% -8% auto auto; width: 62%; height: 62%; background: radial-gradient(circle, rgba(255,122,24,0.28), transparent 68%); filter: blur(10px); z-index: 0; }
.hero-media img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); background: var(--surface-2); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 8px auto 0; }
  .hero-media img { aspect-ratio: 16 / 10; }
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 0.85rem; font-weight: 600; }

/* ── 카드 그리드 ── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand-ring); box-shadow: 0 26px 60px -30px rgba(255, 122, 24, 0.4); }
.card h3 { font-size: var(--fs-h3); }
.card p { font-size: 0.92rem; margin: 0; }
.card .card-link { margin-top: auto; padding-top: 10px; color: var(--brand-soft); font-weight: 700; font-size: 0.9rem; }
.card.is-featured { border-color: var(--brand); box-shadow: 0 26px 60px -26px rgba(255, 122, 24, 0.55); }
.card .badge { position: absolute; top: -11px; left: 22px; background: var(--brand-grad); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: var(--r-pill); box-shadow: var(--brand-glow); }

/* ── 요금 카드 ── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price { text-align: center; padding: 30px 22px; }
.price .amt { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.price .amt small { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }
.price .per { color: var(--brand-soft); font-weight: 700; margin: 6px 0 2px; }

/* ── 본문 아티클 ── */
.article h2 { font-size: var(--fs-h2); margin-top: 1.8em; padding-top: 0.2em; }
.article h2:first-of-type { margin-top: 0.4em; }
.article ul { padding-left: 1.1em; color: var(--text-2); }
.article li { margin-bottom: 0.4em; }
.prose-narrow { max-width: 74ch; }

/* ── 정의/노트 박스 ── */
.note { border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; margin: 1.2em 0; }
.note.warn { border-left-color: var(--gold); }

/* ── 브레드크럼 ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--text-muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--brand-soft); }
.crumbs span { opacity: 0.5; }

/* ── FAQ ── */
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand-soft); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { padding: 0 18px 16px; margin: 0; }

/* ── 관련 링크(내부링크) ── */
.linkwrap { display: flex; flex-wrap: wrap; gap: 8px; }
.linkwrap a { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--text-2); transition: 0.16s; }
.linkwrap a:hover { color: var(--text); border-color: var(--brand-ring); background: var(--surface-3); }

/* ── 푸터 ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 52px 0 34px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--brand-soft); }
.footer-biz { font-size: 0.9rem; color: var(--text-2); }
.footer-biz strong { color: var(--text); }
.footer-biz .tel { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* 오렌지 제작문의 / 제휴문의 버튼 */
.btn-tg { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.92rem; background: var(--brand-grad); color: #fff; box-shadow: var(--brand-glow); transition: transform 0.15s, box-shadow 0.2s; }
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 122, 24, 0.7); }
.btn-tg svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--text-muted); }

/* ── 모바일 전화 FAB (움직이는 오렌지 아이콘, 터치 시 전화 연결) ── */
.call-fab {
  position: fixed; right: 18px; bottom: 20px; z-index: 120;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(255, 122, 24, 0.7);
  animation: fab-bounce 1.9s ease-in-out infinite;
}
.call-fab svg { width: 27px; height: 27px; animation: fab-ring 1.9s ease-in-out infinite; }
.call-fab::before, .call-fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--brand); opacity: 0.6; animation: fab-pulse 1.9s ease-out infinite;
}
.call-fab::after { animation-delay: 0.9s; }
.call-fab .fab-label { position: absolute; right: 70px; white-space: nowrap; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 700; box-shadow: var(--shadow-2); opacity: 0; transform: translateX(8px); transition: 0.2s; pointer-events: none; }
.call-fab:hover .fab-label { opacity: 1; transform: translateX(0); }

@keyframes fab-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fab-ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-14deg); } 20% { transform: rotate(14deg); } 30% { transform: rotate(-10deg); } 40% { transform: rotate(10deg); } 50% { transform: rotate(0); } }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .call-fab, .call-fab svg, .call-fab::before, .call-fab::after { animation: none; }
}
@media (min-width: 901px) {
  .call-fab { right: 26px; bottom: 26px; }
}
