/* ============================================
   혁신계량연구소 (Innovation Metrics)
   Global Stylesheet — styles.css
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --navy:        #1B2A4A;
  --navy-dark:   #111D35;
  --navy-light:  #2C3E6B;
  --gold:        #D4A832;
  --gold-light:  #F0D060;
  --gold-muted:  #C6A24E;

  /* Neutrals */
  --white:       #FFFFFF;
  --bg:          #F6F7F9;
  --bg-alt:      #EEF0F4;
  --gray-100:    #E8EAF0;
  --gray-300:    #C2C7D3;
  --gray-500:    #7A8299;
  --gray-700:    #4A5068;
  --gray-900:    #2A2F3E;
  --text:        #2A2F3E;
  --text-light:  #5C6378;

  /* Typography */
  --font-heading: 'Noto Serif KR', 'Georgia', serif;
  --font-body:    'Pretendard', 'Noto Sans KR', 'Helvetica Neue', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width:   1200px;
  --header-h:    72px;
  --radius:      8px;
  --radius-lg:   16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(27,42,74,0.06);
  --shadow-md:  0 4px 16px rgba(27,42,74,0.08);
  --shadow-lg:  0 8px 32px rgba(27,42,74,0.10);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.35rem; margin-bottom: var(--space-sm); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-sm); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
  display: block;
}

.section-label--light {
  color: var(--gold-light);
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.8); }

.section--bg {
  background: var(--bg);
}

.text-center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-2-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-dark);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.header-logo-text {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s var(--ease);
  position: relative;
  padding: 0.3rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  display: block;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-muted);
  border-color: var(--gold-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,50,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: var(--space-md);
  line-height: 1.35;
}

.hero .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.hero-logo {
  width: 90px;
  height: auto;
  margin-bottom: var(--space-lg);
  border-radius: 8px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}

.card-icon--gold {
  background: rgba(212,168,50,0.1);
}

.card h3 { color: var(--navy); }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* Navy card variant */
.card--navy {
  background: var(--navy);
  border-color: var(--navy-light);
}
.card--navy h3 { color: var(--white); }
.card--navy p { color: rgba(255,255,255,0.7); }
.card--navy .card-icon { background: rgba(255,255,255,0.08); }
.logo-story-section {
  position: relative;
  overflow: hidden;
}

.logo-story-layout {
  align-items: center;
  gap: var(--space-xl);
}

.logo-story-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.logo-story-section h2,
.logo-story-section h3 {
  color: var(--white);
}

.logo-story-section p {
  color: rgba(255,255,255,0.82);
}

/* ---------- Divider / Accent ---------- */
.gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-xl);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Insight Cards ---------- */
.insight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.insight-card-thumb {
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.insight-card-body {
  padding: var(--space-md);
}

.insight-card-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xs);
}

.insight-tag {
  background: rgba(212,168,50,0.12);
  color: var(--gold-muted);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.insight-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.insight-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Featured insight */
.insight-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  margin-bottom: var(--space-xl);
}

.insight-featured .insight-card-thumb {
  height: 100%;
  min-height: 260px;
}

.insight-featured .insight-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Contact Form ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.footer-brand .footer-slogan {
  color: var(--gold-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-alt);
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.tag--gold {
  background: rgba(212,168,50,0.12);
  color: var(--gold-muted);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(212,168,50,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- Service Detail Sections ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: var(--space-xl) 0; }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-detail,
  .service-detail--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .insight-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .hamburger {
    display: flex;
  }

  .hero { padding: var(--space-xl) 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: 1rem; }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}
