/* ============================================================
   WEALTH GUIDE — site shell
   nav, footer, layout primitives, page components.
   Imported AFTER colors_and_type.css.
   ============================================================ */

* { box-sizing: border-box; }
body { margin: 0; }

/* ---------- Page container ---------- */
.wg-page {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.wg-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

@media (max-width: 720px) {
  .wg-shell { padding: 0 24px; }
}

/* Hairline that runs full-bleed inside shell */
.wg-rule { border: 0; border-top: 1px solid var(--fg); margin: 0; }
.wg-rule-soft { border: 0; border-top: 1px solid var(--haze-20); margin: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.wg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--haze-20);
}

.wg-nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wg-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  border: 0;
}

.wg-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wg-brand-mark span {
  width: 10px;
  height: 10px;
}
.wg-brand-mark span:nth-child(1) { background: var(--cobalt); }
.wg-brand-mark span:nth-child(2) { background: var(--midnight); }
.wg-brand-mark span:nth-child(3) { background: var(--mustard); }

.wg-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}

.wg-brand-kr {
  font-family: var(--font-kr);
  font-weight: 800;
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .wg-brand-kr { display: none; }
}

.wg-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.wg-nav-links a {
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  border: 0;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .wg-nav-links a span { display: none; }
  .wg-nav-links { gap: 24px; }
}
.wg-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
}
.wg-nav-links a:hover::after,
.wg-nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.wg-nav-links a[aria-current="page"] {
  font-weight: 700;
}

.wg-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-kr);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wg-nav-cta:hover { background: var(--cobalt); border-color: var(--cobalt); }
.wg-nav-cta .arr { font-family: var(--font-mono); }

@media (max-width: 860px) {
  .wg-nav-links { display: none; }
}

/* ============================================================
   META BAR — runs above hero with breadcrumb / version / locale
   ============================================================ */
.wg-metabar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--haze-20);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.wg-metabar > * { display: flex; gap: 16px; }
.wg-metabar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--cobalt);
  margin-right: 6px;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .wg-metabar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.wg-section {
  padding: 96px 0;
  border-top: 1px solid var(--haze-20);
}
.wg-section:first-of-type { border-top: 0; }

.wg-section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.wg-section-head .wg-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.wg-section-head .wg-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--fg);
}
.wg-section-head h2 {
  font-family: var(--font-kr);
  letter-spacing: -0.025em;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
}
.wg-section-head h2 .accent { color: var(--cobalt); }
.wg-section-head .lede {
  font-family: var(--font-kr);
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 56ch;
  margin-top: 24px;
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  .wg-section { padding: 64px 0; }
  .wg-section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wg-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 28px;
  font-family: var(--font-kr);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  position: relative;
  cursor: pointer;
}
.wg-btn .arr { font-family: var(--font-mono); font-weight: 400; }
.wg-btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.wg-btn-ghost {
  background: transparent;
  color: var(--fg);
}
.wg-btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* Offset block button — signature CTA */
.wg-btn-offset-wrap {
  position: relative;
  display: inline-block;
}
.wg-btn-offset-wrap::before {
  content: "";
  position: absolute;
  inset: 6px -6px -6px 6px;
  background: var(--cobalt);
  z-index: 0;
}
.wg-btn-offset-wrap .wg-btn { position: relative; z-index: 1; }
.wg-btn-offset-wrap:hover::before { background: var(--mustard); }

/* ============================================================
   FOOTER
   ============================================================ */
.wg-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 96px 0 32px;
  margin-top: 0;
}
.wg-footer .wg-shell { color: var(--bone); }

.wg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.2);
}
.wg-footer-mark {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wg-footer-mark + p {
  font-family: var(--font-kr);
  margin-top: 16px;
  color: rgba(250, 250, 247, 0.7);
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.6;
}
.wg-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
  margin: 0 0 20px;
}
.wg-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.wg-footer ul a {
  font-family: var(--font-kr);
  font-size: 14px;
  color: var(--bone);
  border: 0;
}
.wg-footer ul a:hover { color: var(--mustard); }

.wg-footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
}
.wg-footer-base > div { display: flex; gap: 24px; }

@media (max-width: 860px) {
  .wg-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .wg-footer-base { flex-direction: column; gap: 16px; }
}

/* ============================================================
   GRID OVERLAY (decorative)
   ============================================================ */
.wg-grid-bg {
  position: relative;
}
.wg-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--haze-08) 1px, transparent 1px),
    linear-gradient(to bottom, var(--haze-08) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 0;
}
.wg-grid-bg > * { position: relative; z-index: 1; }

/* Crosshair markers at 4 corners of an element */
.wg-corners { position: relative; }
.wg-corners::before,
.wg-corners::after,
.wg-corners > .wg-corners-inner::before,
.wg-corners > .wg-corners-inner::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--haze);
  line-height: 1;
}
.wg-corners::before { top: -8px; left: -8px; }
.wg-corners::after  { top: -8px; right: -8px; }
.wg-corners > .wg-corners-inner::before { bottom: -8px; left: -8px; }
.wg-corners > .wg-corners-inner::after  { bottom: -8px; right: -8px; }

/* ============================================================
   STATIC ON-SCROLL REVEAL (single, very light)
   ============================================================ */
.wg-rise {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.wg-rise.in {
  opacity: 1;
  transform: none;
}

/* ─── CTA BAND ─── */
.cta-band {
  padding: 128px 0;
  border-top: 1px solid var(--fg);
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--haze-08) 1px, transparent 1px),
    linear-gradient(to bottom, var(--haze-08) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 96px;
  align-items: end;
  position: relative;
}
.cta-band h2 {
  font-family: var(--font-kr);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
.cta-band h2 .accent { color: var(--cobalt); }
.cta-band .cta-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta-band .cta-side p {
  font-family: var(--font-kr); font-size: 16px; line-height: 1.6;
  color: var(--fg-muted); letter-spacing: -0.01em;
  margin: 0;
}
@media (max-width: 900px) {
  .cta-band { padding: 80px 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
}
