/* IDEACUBE — shared site styles */

:root {
  --ink: #20242A;
  --ink-soft: #565B62;
  --ink-body: #333941;
  --ink-faint: #8A8F95;
  --paper: #F7F7F5;
  --surface-alt: #EFEFEB;
  --line: #E4E3DF;
  --line-strong: #D9D8D3;
  --accent: #1E6E68;
  --accent-dark: #154F4B;
  --accent-2: #B5692E;
  --accent-2-soft: #F3E3D2;
  --accent-3: #2B3A67;
  --accent-3-soft: #DCE1EC;
  --max: 800px;
  --wide: 1080px;
}

.logo-mark { display: block; flex-shrink: 0; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-2-soft);
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

.wrap { max-width: var(--max); width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}
.brand, .brand:hover { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { height: 36px; width: 36px; object-fit: contain; }
.brand span { font-size: 18px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a { font-size: 17px; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); font-weight: 600; }

.cta-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.cta-link:hover { color: var(--accent); border-color: var(--accent); }

.cta-btn {
  display: inline-block;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cta-btn:hover { background: var(--accent-dark); color: #FFFFFF; }

.nav-toggle { display: none; }
.header-cta-spacer { width: 76px; display: inline-block; }

/* Sections */
section { display: flex; justify-content: center; padding: 72px 48px; }
section.alt { background: var(--surface-alt); }
section.tight-top { padding-top: 96px; }
section.hero { padding-top: 96px; padding-bottom: 80px; min-height: calc(100vh - 84px); align-items: center; }
.section-inner { max-width: var(--max); width: 100%; display: flex; flex-direction: column; gap: 26px; }

.eyebrow { font-size: 15px; color: var(--ink-faint); }
h1 { font-size: 44px; line-height: 1.35; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.005em; margin: 0; }
h3 { font-size: 19px; font-weight: 600; margin: 0; }
p { margin: 0; color: var(--ink-body); font-size: 17px; line-height: 1.8; }
.lede { color: var(--ink-soft); font-size: 18px; }
.small { font-size: 14.5px; color: var(--ink-faint); }

/* Hero */
.hero-inner { max-width: 620px; }

/* Trust line */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 48px; }
.trust .section-inner { flex-direction: row; align-items: center; justify-content: center; gap: 24px; max-width: 700px; }
.trust img { height: 185px; width: auto; object-fit: contain; }

.stage-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Cards for services/courses full pages */
.detail-block { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; }
.detail-head h2 { font-size: 22px; }

/* Credentials */
.cred-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cred-row { display: flex; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cred-icon-box {
  width: 220px; height: 220px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cred-icon {
  width: 84px; height: 84px; border-radius: 12px; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cred-name { font-size: 17px; font-weight: 600; width: 250px; flex-shrink: 0; }
.cred-desc { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }

/* Reference table */
.ref-table { display: flex; flex-direction: column; }
.ref-head-row, .ref-row {
  display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 16px;
}
.ref-head-row { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.ref-head-row span { font-size: 13px; color: var(--ink-faint); }
.ref-row { padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ref-group-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); padding: 28px 0 10px;
}
.ref-group-label:first-of-type { padding-top: 20px; }
.ref-org { font-size: 16px; font-weight: 600; }
.ref-meta { font-size: 15px; color: var(--ink-faint); }

/* Footer */
footer { display: flex; justify-content: center; padding: 48px 48px 40px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; }
.footer-bottom span { font-size: 13px; color: var(--ink-faint); }

/* Final CTA (services / contact) */
.cta-band { background: var(--ink); }
.cta-band h2 { color: #FFFFFF; }
.cta-band .section-inner { align-items: center; text-align: center; gap: 24px; }
.cta-band .cta-btn { background: #FFFFFF; color: var(--ink); }
.cta-band .cta-btn:hover { background: var(--accent-2-soft); color: var(--ink); }

/* Contact form */
.contact-grid { display: flex; gap: 64px; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.contact-info .field { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-info .field:first-of-type { margin-top: 8px; }
.contact-info .field span:first-child { font-size: 14px; color: var(--ink-faint); }
.contact-info .field span:last-child { font-size: 16px; font-weight: 500; }
.contact-form { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; font-size: 15px; padding: 13px 14px; border: 1px solid var(--line-strong);
  border-radius: 6px; background: #FFFFFF; outline: none; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: -6px; }
.form-status { font-size: 14px; margin-top: -4px; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #B3261E; }

/* Framework tabs (courses page) */
.framework-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1.5px solid var(--line-strong); margin-bottom: 20px;
}
.framework-tab {
  padding: 13px 22px; font-size: 15.5px; font-weight: 500; color: var(--ink-faint);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; margin-bottom: -1.5px; white-space: nowrap; font-family: inherit;
}
.framework-tab:hover { color: var(--ink); }
.framework-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.framework-panel[hidden] { display: none; }
.framework-subhead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.framework-subhead h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
}

.course-detail {
  border: 1px solid var(--line); border-radius: 10px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}
.course-detail:last-child { margin-bottom: 0; }
.course-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.course-detail-head h3, .course-detail-head h4 { font-size: 19px; }

.schedule-toggle {
  align-self: flex-start; margin-top: 4px; padding: 0; border: none; background: none;
  color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.schedule-toggle:hover { color: var(--accent-dark); }
.course-schedule { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.course-schedule[hidden] { display: none; }
.course-schedule-day { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.course-schedule-day:first-child { margin-top: 0; }
.course-schedule-row { display: flex; gap: 12px; align-items: baseline; }
.course-schedule-time { flex-shrink: 0; width: 96px; font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.course-schedule-content { font-size: 14px; color: var(--ink-body); }

/* FAQ (courses.html) */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--ink-faint); flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin-top: 12px; font-size: 15.5px; color: var(--ink-soft); }

/* Responsive: tablet */
@media (max-width: 1024px) and (min-width: 761px) {
  .section-inner { max-width: 640px; }
  section.hero .section-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  section.hero svg { max-width: 220px; margin-top: 8px; }
  .tight-top .section-inner { flex-direction: column; }
  .tight-top .section-inner svg { max-width: 170px; margin-top: 16px; }
  .site-nav { gap: 24px; }
  section.hero { min-height: auto; }
}

/* Responsive: mobile */
@media (max-width: 760px) {
  .site-header { padding: 18px 20px; }
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 240px; background: #FFFFFF;
    flex-direction: column; align-items: flex-start; gap: 8px; padding: 88px 28px 28px;
    transform: translateX(100%); transition: transform .2s ease; box-shadow: -8px 0 24px rgba(0,0,0,.08); z-index: 90; }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 95;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); }
  .header-cta, .header-cta-spacer { display: none; }
  section { padding: 48px 20px; }
  section.hero { padding-top: 56px; min-height: auto; }
  section.hero .section-inner { flex-direction: column !important; }
  section.hero svg { max-width: 180px !important; margin-top: 8px; }
  .two-col-grid { grid-template-columns: 1fr !important; }
  .tight-top .section-inner { flex-direction: column !important; }
  .tight-top .section-inner svg { max-width: 140px !important; margin-top: 12px; }
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  p, .lede { font-size: 16px; }
  .trust .section-inner { flex-direction: column; text-align: center; gap: 10px; }
  .trust img { height: 90px; }
  .cred-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cred-name { width: auto; }
  .contact-grid { flex-direction: column; gap: 40px; }
  .ref-head-row, .ref-row { grid-template-columns: 1fr; gap: 4px; }
  .ref-row { padding: 16px 0; }
  .flow-diagram { flex-direction: column; }
  .flow-diagram-arrow { transform: rotate(90deg); }
  .framework-tabs { gap: 2px; }
  .framework-tab { padding: 10px 14px; font-size: 14px; }
  .course-detail { padding: 18px; }
  .detail-block { padding: 20px; }
  .course-schedule-row { flex-direction: column; gap: 1px; }
  .course-schedule-time { width: auto; }
}
