/* =============================================================
   간다GO · 컴포넌트 오버레이
   ============================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-850);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg-900) 82%, transparent);
  border-bottom: 1px solid var(--surface-line);
}
.site-header .bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text-hi); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  box-shadow: var(--shadow-float);
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-size: 14px; color: var(--text-mid); padding: 8px 12px; border-radius: var(--r-pill);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text-hi); background: var(--brand-soft); }
.nav .cta {
  color: #fff; background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  font-weight: 700;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text-hi); font-size: 22px; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1100px 460px at 78% -10%, rgba(255,122,24,0.18), transparent 60%),
    radial-gradient(760px 420px at 8% 0%, rgba(38,74,150,0.28), transparent 62%),
    linear-gradient(180deg, var(--bg-900), var(--bg-850));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand-400);
  background: var(--brand-soft); border: 1px solid rgba(255,122,24,0.28);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 16px; color: var(--text-hi);
  font-size: clamp(28px, 5vw, 46px); line-height: 1.18; font-weight: 850;
  letter-spacing: -0.03em; max-width: 20ch;
}
.hero p.lead { margin: 0 0 28px; font-size: clamp(15px, 2.2vw, 18px); color: var(--text-mid); max-width: 60ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 히어로 2단(텍스트 + 4:3 이미지) */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero-media {
  position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--surface-line); box-shadow: var(--shadow-card);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255,122,24,0.22), transparent 55%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ph {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  color: var(--text-mid); font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
}
.hero-ph small { color: var(--text-low); font-weight: 500; }
.hero-media.is-empty .hero-ph { display: grid; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
}

/* ---------- 버튼 ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--text-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 22px; border-radius: var(--r-pill);
  border: 1px solid var(--surface-line); background: var(--_bg); color: var(--_fg);
  cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }
.btn--primary {
  --_bg: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  --_fg: #fff; border-color: transparent; box-shadow: var(--shadow-float);
}
.btn--ghost { --_bg: transparent; --_fg: var(--text); }
.btn--ghost:hover { background: var(--surface); }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--alt { background: var(--bg-800); }
.section-head { max-width: 62ch; margin: 0 auto clamp(28px, 5vw, 48px); text-align: center; }
.section-head h2 {
  margin: 0 0 12px; color: var(--text-hi);
  font-size: clamp(23px, 3.6vw, 34px); font-weight: 820; letter-spacing: -0.025em;
}
.section-head p { margin: 0; color: var(--text-mid); font-size: clamp(14px, 2vw, 16px); }

/* ---------- 요금(가격) 카드 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  position: relative; background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--r-lg); padding: 34px 26px; text-align: center; box-shadow: var(--shadow-card);
}
.price h3 { margin: 0 0 18px; color: var(--text-hi); font-size: 18px; font-weight: 750; }
.price .amount { font-size: clamp(32px, 5vw, 42px); font-weight: 850; color: var(--text-hi); letter-spacing: -0.03em; }
.price .amount small { font-size: 15px; font-weight: 600; color: var(--text-mid); margin-left: 3px; }
.price .dur { display: block; margin: 10px 0 14px; color: var(--brand-400); font-weight: 800; }
.price .desc { color: var(--text-mid); font-size: 14px; min-height: 42px; }
.price .btn { width: 100%; margin-top: 20px; }
.price--featured {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1.5px solid var(--brand-500);
  box-shadow: 0 0 0 1px var(--brand-glow), var(--shadow-card);
}
.price .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff;
  font-size: 13px; font-weight: 800; padding: 6px 18px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-float);
}
.price-note { text-align: center; margin-top: 26px; color: var(--text-low); font-size: 14px; }
.price-note a { color: var(--brand-400); font-weight: 700; }

/* ---------- 카드 그리드 (지역/프로그램) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--r-md); padding: 20px 18px; box-shadow: var(--ring);
  transition: transform .16s, border-color .16s, background .16s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,122,24,0.5); background: var(--surface-2); }
.card .k { color: var(--text-hi); font-weight: 750; font-size: 16px; }
.card .v { color: var(--text-mid); font-size: 13.5px; }
.card .arrow { margin-top: 6px; color: var(--brand-400); font-weight: 700; font-size: 13px; }

/* ---------- 본문 프로즈 ---------- */
.prose { max-width: 74ch; margin-inline: auto; }
.prose h2 {
  margin: 40px 0 14px; color: var(--text-hi); font-size: clamp(20px, 3vw, 26px);
  font-weight: 800; letter-spacing: -0.02em;
}
.prose h3 { margin: 26px 0 10px; color: var(--text-hi); font-size: 18px; font-weight: 750; }
.prose p { margin: 0 0 16px; color: var(--text); }
.prose ul { margin: 0 0 18px; padding-left: 20px; }
.prose li { margin-bottom: 7px; color: var(--text); }
.prose a.inline { color: var(--brand-400); font-weight: 650; border-bottom: 1px solid rgba(255,122,24,0.4); }
.prose a.inline:hover { color: var(--brand-500); }

/* ---------- FAQ ---------- */
.faq { max-width: 74ch; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--r-md); padding: 4px 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: var(--text-hi);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-400); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--text-mid); }

/* ---------- Who/How/Why ---------- */
.whw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.whw article {
  background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--r-md); padding: 22px;
}
.whw h3 { margin: 0 0 8px; color: var(--brand-400); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.whw p { margin: 0; color: var(--text-mid); font-size: 14px; }

/* ---------- 컴플라이언스 안내 ---------- */
.notice {
  max-width: 74ch; margin: 24px auto 0; padding: 16px 20px;
  border: 1px solid var(--surface-line); border-left: 3px solid var(--warn);
  border-radius: var(--r-sm); background: var(--surface); color: var(--text-mid); font-size: 13.5px;
}

/* ---------- 브레드크럼 ---------- */
.crumbs { font-size: 13px; color: var(--text-low); padding: 18px 0 0; }
.crumbs a:hover { color: var(--brand-400); }
.crumbs span { margin: 0 6px; opacity: .5; }

/* =============================================================
   푸터
   ============================================================= */
.site-footer { background: var(--bg-900); border-top: 1px solid var(--surface-line); padding: 52px 0 30px; }
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--surface-line);
}
/* 오렌지 문의 버튼 (제작문의 / 제휴문의) */
.btn--orange {
  --_bg: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  --_fg: #fff; border-color: transparent; box-shadow: var(--shadow-float);
  padding: 15px 30px; font-size: 15.5px;
}
.btn--orange .tg { font-size: 17px; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 34px;
}
.footer-grid h4 { margin: 0 0 12px; color: var(--text-hi); font-size: 14px; font-weight: 750; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid p { color: var(--text-mid); font-size: 14px; margin: 0 0 8px; }
.footer-grid a:hover { color: var(--brand-400); }
.footer-brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
}
.footer-biz { color: var(--text-low); font-size: 13px; line-height: 1.9; }
.footer-biz strong { color: var(--text-mid); }
.footer-biz .tel { color: var(--brand-400); font-weight: 800; font-size: 15px; }
.footer-bottom {
  text-align: center; color: var(--text-low); font-size: 12.5px;
  padding-top: 24px; border-top: 1px solid var(--surface-line);
}

/* =============================================================
   모바일 플로팅 전화 버튼 (전 지역 노출 · 오렌지 · 애니메이션)
   ============================================================= */
.call-fab {
  position: fixed; right: 18px; bottom: 20px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  box-shadow: 0 12px 30px -6px var(--brand-glow);
  animation: fab-bob 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 {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--brand-500); animation: fab-pulse 1.9s ease-out infinite;
}
.call-fab .fab-label {
  position: absolute; right: 70px; white-space: nowrap;
  background: var(--bg-800); color: var(--text-hi); border: 1px solid var(--surface-line);
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: var(--r-pill);
  opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.call-fab:hover .fab-label { opacity: 1; transform: translateX(0); }

@keyframes fab-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fab-ring { 0%,70%,100% { transform: rotate(0); } 10%,30%,50% { transform: rotate(-14deg); } 20%,40%,60% { transform: rotate(14deg); } }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .call-fab, .call-fab svg, .call-fab::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   반응형
   ============================================================= */
@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
  .whw { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter);
    background: var(--bg-900); border-bottom: 1px solid var(--surface-line);
  }
  .nav.open a { padding: 12px; }
  .nav-toggle { display: block; }
}
@media (min-width: 861px) {
  .call-fab .fab-label { display: block; }
}
