/* ============================================================
   MOTUS — Colors & Type
   Educação em Neurogastroenterologia e Motilidade
   ============================================================ */

/* ---- Web fonts (Google Fonts substitutes) ----
   FLAG: We do not have the exact wordmark font files. The MOTUS
   wordmark looks like a humanist geometric sans (likely Nunito,
   Mulish, or a custom drawing). We substitute with Nunito for
   display + DM Sans for body until brand font files are supplied. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ============== BRAND CORE ============== */
  /* Sampled directly from MOTUS_logo_azul_HD. The navy comes from
     the wordmark; teals come from the wave illustration. */
  --motus-navy:        #1E3C69;   /* primary — wordmark, headings, links */
  --motus-navy-deep:   #142A4A;   /* hover / pressed navy */
  --motus-navy-soft:   #2E5188;   /* secondary navy, dividers on light */

  --motus-teal:        #3C7878;   /* primary teal — deep wave color */
  --motus-teal-mid:    #4B8787;   /* mid teal — flat fills, buttons */
  --motus-teal-light:  #5AA596;   /* light teal — accents, illustrations */
  --motus-teal-soft:   #87C3B4;   /* soft teal — backgrounds, tags */
  --motus-teal-mist:   #D6EAE3;   /* mist — surface tint */

  /* Sub-mark gray background (the MT circle on cinza) */
  --motus-stone:       #BFC3C6;
  --motus-stone-soft:  #E6E8EA;

  /* ============== NEUTRALS ============== */
  --motus-ink:         #0F1A2B;   /* foreground primary on light */
  --motus-ink-2:       #2A3949;   /* foreground secondary */
  --motus-ink-3:       #56657A;   /* tertiary, captions, meta */
  --motus-ink-4:       #8C97A6;   /* placeholder, disabled */

  --motus-line:        #E2E6EC;   /* hairlines / borders */
  --motus-line-strong: #C9D0DA;   /* stronger borders, focus rings */

  --motus-surface:     #FFFFFF;   /* card surface */
  --motus-surface-2:   #F7F9FB;   /* off-white page background */
  --motus-surface-3:   #EEF2F6;   /* subtle fill */

  /* Inverted (for navy hero sections) */
  --motus-on-dark:        #FFFFFF;
  --motus-on-dark-2:      #C9D6E8;   /* secondary text on navy */
  --motus-on-dark-3:      #8FA3C2;   /* tertiary text on navy */
  --motus-on-dark-line:   rgba(255,255,255,0.14);

  /* ============== SEMANTIC ============== */
  --motus-success:     #2F9E78;
  --motus-success-bg:  #E4F4ED;
  --motus-warning:     #C28A2C;
  --motus-warning-bg:  #FAF1DD;
  --motus-danger:      #B5443A;
  --motus-danger-bg:   #FBE7E4;
  --motus-info:        var(--motus-teal-mid);
  --motus-info-bg:     var(--motus-teal-mist);

  /* ============== GRADIENTS / BRAND BACKDROPS ============== */
  /* @kind color */
  --motus-grad-wave:   linear-gradient(120deg, #1E3C69 0%, #2E5188 38%, #4B8787 72%, #5AA596 100%);
  /* @kind color */
  --motus-grad-teal:   linear-gradient(160deg, #3C7878 0%, #5AA596 100%);
  /* @kind color */
  --motus-grad-navy:   linear-gradient(180deg, #1E3C69 0%, #142A4A 100%);
  /* @kind color */
  --motus-grad-mist:   linear-gradient(180deg, #FFFFFF 0%, #EEF6F4 100%);

  /* ============== TYPE — families ============== */
  --motus-font-display: 'Nunito', 'Mulish', system-ui, -apple-system, sans-serif;
  --motus-font-body:    'DM Sans', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --motus-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ============== TYPE — scale ============== */
  --motus-size-display: clamp(40px, 5.4vw, 72px);
  --motus-size-h1:      44px;
  --motus-size-h2:      32px;
  --motus-size-h3:      24px;
  --motus-size-h4:      20px;
  --motus-size-h5:      18px;
  --motus-size-body:    16px;
  --motus-size-small:   14px;
  --motus-size-caption: 12px;
  --motus-size-overline: 11px;

  --motus-leading-tight: 1.1;
  --motus-leading-snug:  1.3;
  --motus-leading-body:  1.55;
  --motus-leading-loose: 1.7;

  --motus-tracking-tight:  -0.02em;
  --motus-tracking-normal: 0em;
  --motus-tracking-wide:   0.06em;
  --motus-tracking-overline: 0.12em;

  /* ============== SPACING ============== */
  --motus-space-1:  4px;
  --motus-space-2:  8px;
  --motus-space-3:  12px;
  --motus-space-4:  16px;
  --motus-space-5:  20px;
  --motus-space-6:  24px;
  --motus-space-8:  32px;
  --motus-space-10: 40px;
  --motus-space-12: 48px;
  --motus-space-16: 64px;
  --motus-space-20: 80px;
  --motus-space-24: 96px;

  /* ============== RADII ============== */
  --motus-radius-xs:   4px;
  --motus-radius-sm:   8px;
  --motus-radius-md:   12px;
  --motus-radius-lg:   16px;
  --motus-radius-xl:   24px;
  --motus-radius-2xl:  32px;
  --motus-radius-pill: 999px;

  /* ============== SHADOWS ============== */
  /* Soft, medical-clean — never harsh */
  --motus-shadow-1: 0 1px 2px rgba(15, 26, 43, 0.04), 0 1px 1px rgba(15, 26, 43, 0.03);
  --motus-shadow-2: 0 4px 12px rgba(15, 26, 43, 0.06), 0 1px 2px rgba(15, 26, 43, 0.04);
  --motus-shadow-3: 0 12px 32px rgba(15, 26, 43, 0.08), 0 2px 6px rgba(15, 26, 43, 0.04);
  --motus-shadow-4: 0 24px 56px rgba(15, 26, 43, 0.12), 0 4px 12px rgba(15, 26, 43, 0.06);
  --motus-shadow-teal: 0 12px 28px rgba(60, 120, 120, 0.18);
  --motus-shadow-navy: 0 16px 36px rgba(30, 60, 105, 0.22);

  --motus-ring-focus: 0 0 0 3px rgba(75, 135, 135, 0.35);

  /* ============== MOTION ============== */
  /* @kind other */
  --motus-ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  /* @kind other */
  --motus-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* @kind other */
  --motus-dur-fast:   140ms;
  /* @kind other */
  --motus-dur-base:   220ms;
  /* @kind other */
  --motus-dur-slow:   420ms;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Use these classes as ready-made type tokens.
   ============================================================ */

.motus-display {
  font-family: var(--motus-font-display);
  font-weight: 800;
  font-size: var(--motus-size-display);
  line-height: var(--motus-leading-tight);
  letter-spacing: var(--motus-tracking-tight);
  color: var(--motus-navy);
}
.motus-h1 {
  font-family: var(--motus-font-display);
  font-weight: 700;
  font-size: var(--motus-size-h1);
  line-height: var(--motus-leading-tight);
  letter-spacing: var(--motus-tracking-tight);
  color: var(--motus-navy);
}
.motus-h2 {
  font-family: var(--motus-font-display);
  font-weight: 700;
  font-size: var(--motus-size-h2);
  line-height: var(--motus-leading-snug);
  letter-spacing: -0.01em;
  color: var(--motus-navy);
}
.motus-h3 {
  font-family: var(--motus-font-display);
  font-weight: 700;
  font-size: var(--motus-size-h3);
  line-height: var(--motus-leading-snug);
  color: var(--motus-navy);
}
.motus-h4 {
  font-family: var(--motus-font-display);
  font-weight: 600;
  font-size: var(--motus-size-h4);
  line-height: 1.35;
  color: var(--motus-navy);
}
.motus-h5 {
  font-family: var(--motus-font-display);
  font-weight: 600;
  font-size: var(--motus-size-h5);
  line-height: 1.4;
  color: var(--motus-navy);
}

.motus-body {
  font-family: var(--motus-font-body);
  font-weight: 400;
  font-size: var(--motus-size-body);
  line-height: var(--motus-leading-body);
  color: var(--motus-ink);
  text-wrap: pretty;
}
.motus-body-lg {
  font-family: var(--motus-font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--motus-ink);
}
.motus-small {
  font-family: var(--motus-font-body);
  font-weight: 400;
  font-size: var(--motus-size-small);
  line-height: 1.5;
  color: var(--motus-ink-2);
}
.motus-caption {
  font-family: var(--motus-font-body);
  font-weight: 500;
  font-size: var(--motus-size-caption);
  line-height: 1.4;
  color: var(--motus-ink-3);
}
.motus-overline {
  font-family: var(--motus-font-body);
  font-weight: 600;
  font-size: var(--motus-size-overline);
  line-height: 1.3;
  letter-spacing: var(--motus-tracking-overline);
  text-transform: uppercase;
  color: var(--motus-teal);
}
.motus-mono {
  font-family: var(--motus-font-mono);
  font-weight: 400;
  font-size: 14px;
}

.motus-link {
  color: var(--motus-teal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--motus-dur-fast) var(--motus-ease-out);
}
.motus-link:hover { color: var(--motus-navy); }
