/* ═══════════════════════════════════════════════════════════
   WXM Design System — common.css
   Figtree (EN/display) + Pretendard (KO/body)
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Brand colors */
  --g:       #1F4037;
  --gh:      #102A24;
  --cream:   #F4F0E8;
  --card:    #F8F5EE;
  --gold:    #C9A978;
  --gold-soft: #D4B98D;
  --text:    #171815;
  --muted:   #5F5A52;
  --dis:     #B4B2A9;
  --bc:      rgba(201, 169, 120, 0.25);
  --bch:     rgba(201, 169, 120, 0.55);
  --gold-line: rgba(201, 169, 120, 0.38);
  --pill-border: rgba(201, 169, 120, 0.68);
  --pill-bg: rgba(244, 240, 232, 0.18);
  --line-on-dark: rgba(255, 255, 255, 0.06);
  --cream-text: #F4F0E8;

  /* Layout */
  --max-site: 1400px;
  --max-content: 860px;
  --header-h: 60px;

  /* Typography */
  --font-display: 'Figtree', 'Pretendard', system-ui, sans-serif;
  --font-body: 'Pretendard', 'Figtree', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gh);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 0.5px solid var(--line-on-dark);
}

.header-inner {
  width: 100%;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cream-text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.6);
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--cream-text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream-text);
  border: 0.5px solid rgba(244, 240, 232, 0.38);
  border-radius: 30px;
  padding: 6px 20px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-pill:hover {
  border-color: rgba(244, 240, 232, 0.7);
  background: rgba(244, 240, 232, 0.06);
}

.nav-pill.active {
  background: var(--g);
  border-color: var(--g);
}

/* ── PAGE HEADER [B][E] ── */
.page-header {
  background: var(--gh);
  padding: 52px 48px 48px;
  border-bottom: 0.5px solid var(--line-on-dark);
}

.page-header-inner {
  max-width: var(--max-site);
  margin: 0 auto;
}

.ph-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}

.ph-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream-text);
  letter-spacing: -0.025em;
}

.ph-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(244, 240, 232, 0.5);
  letter-spacing: 0.01em;
  line-height: 1.7;
}

/* ── SECTION LABEL (gold) ── */
.section-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--bc);
}

/* ── HUB [B] ── */
.hub-section { padding: 52px 48px 64px; }
.hub-inner { max-width: var(--max-site); margin: 0 auto; }

.hub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--max-content);
}

.hub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0.5px solid rgba(31, 64, 55, 0.18);
  border-radius: 30px;
  padding: 20px 28px;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.hub-item:hover {
  border-color: rgba(31, 64, 55, 0.4);
  background: rgba(31, 64, 55, 0.03);
  transform: translateX(3px);
}

.hub-item.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hub-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-item-left i {
  font-size: 18px;
  color: var(--g);
  opacity: 0.7;
  flex-shrink: 0;
}

.hub-item.disabled i {
  color: var(--dis);
  opacity: 1;
}

.hub-item-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hub-item.disabled .hub-item-name { color: var(--dis); }

.hub-item-arrow {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  flex-shrink: 0;
}

.hub-item:hover .hub-item-arrow { color: var(--g); }

/* ── ACTION BAND — light (index / qube24 / seminar) ── */
.action-band,
.contact-band,
.contact-section,
.inquiry-band {
  position: relative;
  background: var(--cream);
  border-top: 0.5px solid rgba(31, 64, 55, 0.08);
}

.contact-band {
  background: var(--cream) url('../images/bg-2.png') left center / cover no-repeat;
}

.action-band-inner,
.contact-band-inner,
.contact-section-inner,
.inquiry-inner {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 34px 72px;
  display: grid;
  grid-template-columns: 0.42fr 0.34fr 0.42fr;
  gap: 72px;
  align-items: center;
}

.cb-label,
.cs-label,
.iq-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-band .cb-title,
.contact-section .cs-title,
.iq-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 2.45vw, 42px);
  font-weight: 400;
  line-height: 1.24;
  color: var(--g);
  letter-spacing: -0.055em;
}

.cb-buttons,
.cs-buttons,
.iq-buttons {
  grid-column: 3;
  justify-self: end;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pill button — light band */
.cb-btn,
.cs-btn,
.iq-btn,
.action-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--g);
  background: var(--pill-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-transform: uppercase;
  width: 100%;
}

.cb-btn:hover,
.cs-btn:hover,
.iq-btn:hover,
.action-pill:hover {
  border-color: rgba(201, 169, 120, 0.95);
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.cb-btn-left,
.cs-btn-left,
.iq-btn-left,
.action-pill-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cb-btn-left i,
.cs-btn-left i,
.iq-btn-left i { font-size: 20px; color: var(--g); opacity: 0.86; }

.cb-btn-arrow,
.cs-btn-right,
.iq-btn-right,
.action-pill-arrow {
  font-size: 18px;
  color: var(--g);
  opacity: 0.85;
}

/* ── Q&A accordion ── */
.qa-section { padding: 52px 48px 64px; }
.qa-inner { max-width: var(--max-content); margin: 0 auto; }

.qa-list {
  display: flex;
  flex-direction: column;
  border-top: 0.5px solid var(--bc);
}

.qa-item { border-bottom: 0.5px solid var(--bc); }

.qa-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s;
  user-select: none;
}

.qa-q:hover { color: var(--g); }

.qa-q-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}

.qa-icon {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
}

.qa-item.open .qa-icon { transform: rotate(180deg); color: var(--g); }
.qa-item.open .qa-q { color: var(--g); }

.qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 4px;
}

.qa-a-inner {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  padding-bottom: 22px;
}

.qa-item.open .qa-a { max-height: 300px; }

/* ── CTA BAND — dark (qube24-qa 하단) ── */
.cta-band {
  background: var(--g);
  border-top: 0.5px solid rgba(201, 169, 120, 0.15);
}

.cta-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(201, 169, 120, 0.8);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream-text);
  letter-spacing: -0.02em;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0.5px solid rgba(244, 240, 232, 0.2);
  border-radius: 30px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cream-text);
  background: transparent;
  width: 100%;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  border-color: rgba(201, 169, 120, 0.55);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.cta-btn-left { display: flex; align-items: center; gap: 12px; }
.cta-btn-left i { font-size: 15px; color: rgba(163, 210, 185, 0.8); }
.cta-btn-right { font-size: 13px; color: rgba(244, 240, 232, 0.35); }
.cta-btn:hover .cta-btn-right { color: rgba(244, 240, 232, 0.7); }

/* ── FOOTER ── */
.site-footer {
  background: var(--gh);
  border-top: 0.5px solid var(--line-on-dark);
}

.footer-top {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 44px 48px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
}

.ft-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cream-text);
  margin-bottom: 10px;
}

.ft-sub {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(244, 240, 232, 0.35);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.ft-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(244, 240, 232, 0.28);
  letter-spacing: 0.02em;
}

.ft-company-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 240, 232, 0.75);
  margin-bottom: 10px;
}

.ft-company-info {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(244, 240, 232, 0.42);
  line-height: 1.9;
}

.ft-langs {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 4px;
}

.ft-lang {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.35);
  cursor: pointer;
  transition: color 0.2s;
}

.ft-lang.active { color: rgba(244, 240, 232, 0.85); }
.ft-lang:hover { color: rgba(244, 240, 232, 0.7); }

a.ft-lang {
  text-decoration: none;
  color: rgba(244, 240, 232, 0.35);
}

a.ft-lang:hover { color: rgba(244, 240, 232, 0.7); }

.footer-bottom {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 16px 48px;
}

.ft-copy {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(244, 240, 232, 0.28);
  letter-spacing: 0.03em;
}

/* ── ROADMAP card modes (#004) ── */
.rm-card.is-active .rm-num,
.roadmap-card.is-active .road-number { color: var(--g) !important; }

.rm-card:not(.is-active) .rm-num,
.roadmap-card:not(.is-active) .road-number { color: rgba(201, 169, 120, 0.78) !important; }

/* ── Mobile footer: brand 3 lines + © only ── */
@media (max-width: 980px), (hover: none) and (pointer: coarse) {
  .footer-top > div:nth-child(2) {
    display: none !important;
  }
}

/* ── [C] 단순형 — HEADER + 본문 + FOOTER = 100vh, 스크롤 없음 ── */
.page-type-c {
  min-height: 100vh;
  max-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-type-c main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-type-c .site-footer {
  flex-shrink: 0;
}

.page-type-c .site-header {
  flex-shrink: 0;
}

.page-type-c .footer-top {
  padding: 18px 48px 14px;
}

.page-type-c .footer-bottom {
  padding: 8px 48px 10px;
}

.page-type-c .page-header {
  flex-shrink: 0;
  padding: clamp(20px, 3.2vh, 32px) 48px clamp(14px, 2.4vh, 24px);
}

.page-type-c .ph-title {
  font-size: clamp(24px, 2.8vw, 36px);
}

.page-type-c .login-section {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(12px, 2vh, 24px) 48px clamp(16px, 2.5vh, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-type-c .login-card {
  padding: clamp(24px, 3.5vh, 32px) clamp(24px, 4vw, 36px);
}

.page-type-c .field {
  margin-bottom: clamp(12px, 1.8vh, 16px);
}

.page-type-c .cs-hero {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: clamp(28px, 4.5vh, 56px) 48px clamp(20px, 3.5vh, 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-type-c .cs-title {
  font-size: clamp(44px, 6.5vw, 92px);
  color: #F4F0E8;
}

.page-type-c .cs-hero .cs-title > span:not(.title-sub) {
  color: #F4F0E8;
}

.page-type-c .cs-hero .cs-title .title-sub {
  color: rgba(244, 240, 232, 0.92);
}

.page-type-c .cs-copy {
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.8;
  margin-bottom: clamp(18px, 2.5vh, 28px);
}

@media (max-width: 520px), (hover: none) and (pointer: coarse) {
  .page-type-c .page-header {
    padding: 16px 22px 14px;
  }

  .page-type-c .ph-label {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .page-type-c .ph-title {
    font-size: 22px;
  }

  .page-type-c .login-section {
    padding: 12px 22px 16px;
  }

  .page-type-c .login-card {
    padding: 22px 20px;
  }

  .page-type-c .field input {
    padding: 12px 14px;
    font-size: 13px;
  }

  .page-type-c .login-btn {
    min-height: 42px;
    padding: 12px 20px;
  }

  .page-type-c .login-note {
    margin-top: 14px;
    font-size: 11px;
  }

  .page-type-c .cs-hero {
    padding: clamp(20px, 3.5vh, 40px) 22px clamp(16px, 3vh, 28px);
  }

  .page-type-c .cs-title {
    font-size: clamp(36px, 10vw, 44px);
    margin-bottom: clamp(20px, 3vh, 32px);
    color: #F4F0E8 !important;
  }

  .page-type-c .cs-hero .cs-title > span:not(.title-sub) {
    color: #F4F0E8 !important;
  }

  .page-type-c .cs-hero .cs-title .title-sub {
    color: rgba(244, 240, 232, 0.92) !important;
  }

  .page-type-c .cs-copy {
    font-size: 10.5px;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .page-type-c .footer-top {
    padding: 10px 24px 8px !important;
  }

  .page-type-c .footer-bottom {
    padding: 7px 24px 9px !important;
  }
}
