/* ============================================================
   RUDOCODE — INTER CORPORATE TYPOGRAPHY SYSTEM
   Single-family stack for enterprise / fintech / SaaS UI
   ============================================================ */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: var(--font-sans);
  --font-display: var(--font-sans);

  /* Desktop scale */
  --text-h1: 3.5rem;    /* 56px */
  --text-h2: 2.625rem;  /* 42px */
  --text-h3: 1.875rem;  /* 30px */
  --text-body: 1.125rem;/* 18px */
  --text-small: 0.875rem;/* 14px */

  --leading-tight: 1.15;
  --leading-body: 1.65;
  --leading-small: 1.5;
}

@media (max-width: 768px) {
  :root {
    --text-h1: 2.5rem;   /* 40px */
    --text-h2: 2rem;     /* 32px */
    --text-h3: 1.5rem;   /* 24px */
    --text-body: 1rem;   /* 16px */
  }
}

/* Base */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3 {
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--leading-tight);
}

h2, .h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
}

h3, .h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
}

h4, h5, h6 {
  font-weight: 600;
}

small, .text-small {
  font-size: var(--text-small);
  font-weight: 400;
  line-height: var(--leading-small);
}

label, .form-label, .badge {
  font-weight: 500;
}

/* Navigation */
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
}

.mobile-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
}

/* Section & hero alignment */
.section-header h2 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 16px 0 20px;
}

.hero h1,
.hero-title,
.hero-title-line {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  line-height: var(--leading-tight);
}

.hero p,
.section-header p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* Mega menu */
.mm-nav-label,
.mm-cat-name,
.mm-panel-head h4,
.mm-service-name,
.mm-featured-title,
.mm-featured-desc,
.mm-action-link,
.mm-panel-link {
  font-family: var(--font-body);
}

.mm-cat-name { font-weight: 500; }
.mm-cat-btn.mm-active .mm-cat-name { font-weight: 600; }
.mm-panel-head h4 { font-weight: 700; }
.mm-featured-title { font-weight: 700; }
.mm-service-name { font-weight: 500; }
.mm-featured-btn { font-weight: 600; }

/* Forms */
input, textarea, select, button {
  font-family: var(--font-body);
}

input, textarea, select {
  font-size: var(--text-body);
  font-weight: 400;
}

@media (max-width: 768px) {
  body {
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }
}

/* Footer */
.footer-col h4,
.footer-bottom {
  font-family: var(--font-body);
}
